//
//  NSUserDefaults+Tools.h
//  CityFire
//
//  Created by liuyangzhu on 2017/8/3.
//  Copyright © 2017年 刘养柱. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSUserDefaults (Tools)
/**
 存储用户偏好设置到NSUserDefults
 
 @param data data
 @param key key
 */
+ (void)writeUserDataWithKey:(id)data forKey:(NSString*)key;

/**
 读取数据
 
 @param key key
 @return data
 */
+ (id)readUserDataWithKey:(NSString*)key;

/**
 删除数据
 
 @param key key
 */
+ (void)removeUserDataWithkey:(NSString*)key;

@end
